package unify.data;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "search")
public class Search {
		@SuppressWarnings("unused")
		@DatabaseField(generatedId = true)
		private int databaseId;
		@DatabaseField
		private String label;
		@DatabaseField
		private String link;
		@SuppressWarnings("unused")
		@DatabaseField(foreign = true, foreignAutoRefresh=true, foreignAutoCreate=true)
		private Settings settings = Settings.getInstance();
		
		/**
		 * Ormlite no-arg constructor
		 */
		public Search() {
			super();
		}
		
		public Search(String label, String link) {
			super();
			this.label = label;
			this.link = link;
		}
		
		public String getLabel() {
			return label;
		}

		public void setLabel(String label) {
			this.label = label;
		}

		public String getLink() {
			return link;
		}

		public void setLink(String link) {
			this.link = link;
		}
}
